/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vista.patologias;

import javax.swing.JTextArea;
import util.components.CamelCaseTextField;
import util.validation.annotation.NotEmpty;

/**
 *
 * @author raul
 */
public class SintomasPnl extends javax.swing.JPanel {
    
    private GestorVistaSintomaPnl gestorVista;
    private boolean sintomaGuardado = false ;

    /**
     * Creates new form SintomasPnl
     */
    public SintomasPnl() {
        initComponents();
    }
    
    public SintomasPnl(GestorVistaSintomaPnl gestorVista) {
        this();
        this.gestorVista = gestorVista;
    }

    public JTextArea getDescripcionTxt() {
        return descripcionTxt;
    }

    public GestorVistaSintomaPnl getGestorVista() {
        return gestorVista;
    }

    public void setGestorVista(GestorVistaSintomaPnl gestorVista) {
        this.gestorVista = gestorVista;
    }

    @NotEmpty
    public CamelCaseTextField getNombreTxt() {
        return nombreTxt;
    }

    public boolean isSintomaGuardado() {
        return sintomaGuardado;
    }

    public void setSintomaGuardado(boolean sintomaGuardado) {
        this.sintomaGuardado = sintomaGuardado;
    }
    

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        nombreTxt = new util.components.CamelCaseTextField();
        jLabel2 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        descripcionTxt = new javax.swing.JTextArea();

        jLabel1.setText("Nombre");

        jLabel2.setText("Descripción");

        descripcionTxt.setColumns(20);
        descripcionTxt.setLineWrap(true);
        descripcionTxt.setRows(3);
        jScrollPane2.setViewportView(descripcionTxt);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2))
                .addGap(7, 7, 7)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(nombreTxt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 301, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(nombreTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextArea descripcionTxt;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JScrollPane jScrollPane2;
    private util.components.CamelCaseTextField nombreTxt;
    // End of variables declaration//GEN-END:variables
}
